package com.quectel.mobile.constants;

/**
 * 移动端常量配置
 */

public class MobileSystemConstants {

    /**
     * token与单个人绑定
     * key:key+token
     * value:loginMobileUserSession
     */
    public static final String TOKEN_USER_SESSION = MobileRedisCacheConstants.PROJECT_NAME + "TOKEN_USER_SESSION:";

    /**
     * hset 人与多个token绑定
     */
    public static final String USER_TOKEN_SESSION = MobileRedisCacheConstants.PROJECT_NAME + "USER_TOKEN_SESSION:";

    /**
     * 公众号session过期时间(秒)
     */
    public static final int JSAPI_EXPIRE_TIME = 30 * 60;
    /**
     * app session过期时间(秒) 7天
     */
    public static final int APP_EXPIRE_TIME = 7 * 24 * 60 * 60;


    /**
     * token未传入
     */
    public static final int TOKEN_IS_NULL_CODE = 20001;
    public static final String TOKEN_IS_NULL_MSG = "您还没有登录，请进行登录";

    /**
     * token过期
     */
    public static final int TOKEN_EXPIRED_CODE = 20002;
    public static final String TOKEN_EXPIRED_MSG = "访问令牌过期，请重新登录";
    /**
     * 该token下权限不足
     */
    public static final int TOKEN_PRIVILEGE_NOT_ENOUGH_CODE = 20003;
    public static final String TOKEN_PRIVILEGE_NOT_ENOUGH_MSG = "权限不足，请联系管理员";
}
